package apptoko.com.network;

import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;

public class ProgressDialogManager {
	
	public static ProgressDialog showProgressDialog(Context context, int message){
		ProgressDialog pDialog = new ProgressDialog(context);
		pDialog.setMessage(context.getResources().getString(message));
		pDialog.setCancelable(true);
		pDialog.show();
		return pDialog;
	}
	
	public static ProgressDialog showProgressDialog(Activity context, int message){
		ProgressDialog pDialog = new ProgressDialog(context);
		pDialog.setMessage(context.getResources().getString(message));
		pDialog.setCancelable(true);
		pDialog.show();
		return pDialog;
	}
}
